Top
||
Section Contents
||
Permuted Index
SavaJe OS
1.1.0
The time zone for
SavaJe OS
is defined by the system property
user.timezone
(the default is America/New_York
).
If you are an Antarctic researcher, you can change your
time zone by entering the following command in an Lsh
window:
prop user.timezone=Antarctica/McMurdo
This changes the global system property user.timezone
(not the local property for the current lsh
).
The next lsh
or application you start should reflect
the new time zone setting.
For other valid time zone IDs, see the Java API docmentation
for java.util.TimeZone
and java.util.SimpleTimeZone
.
The following simple program lists the valid IDs:
import java.util.SimpleTimeZone; import java.util.TimeZone; public class Timezones { public static void main(String[] args) { TimeZone tz = new SimpleTimeZone(0, ""); String[] ids = tz.getAvailableIDs(); for (int i = 0; i < ids.length; i++) System.out.println(ids[i]); } }